package com.pocketpets.globaldata;

import android.os.Parcel;
import android.os.Parcelable;


public class LocationData implements Parcelable{
	private static final long serialVersionUID = -1066301023155007820L;
	
	private String id;
	private String title;
	private Double lat;
	private Double lng;
	private int level;
	private String pic;
	private String property;
	private String brief;
	private int type; //1 Pet, 2 Mission 

	public LocationData( String title, Double lat, Double lng, int level, String pic,int type)
	{

		this.title=title;
		this.lat=lat;
		this.lng=lng;
		this.level=level;
		this.pic=pic;
		this.type=type;
	}
	
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public LocationData()
	{
		
	}

	

	
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}
	public void writeToParcel(Parcel arg0, int arg1) {
		arg0.writeString(id);
		arg0.writeString(title);
		arg0.writeDouble(lat);
		arg0.writeDouble(lng);
		arg0.writeString(pic);
		arg0.writeString(brief);
		arg0.writeString(property);
	}
	
	 public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Double getLat() {
		return lat;
	}
	public void setLat(Double lat) {
		this.lat = lat;
	}
	public Double getLng() {
		return lng;
	}
	public void setLng(Double lng) {
		this.lng = lng;
	}
	public int getLevel() {
		return level;
	}
	public void setLevel(int level) {
		this.level = level;
	}
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
	public String getProperty() {
		return property;
	}
	public void setProperty(String property) {
		this.property = property;
	}
	public String getBrief() {
		return brief;
	}
	public void setBrief(String brief) {
		this.brief = brief;
	}

	public static final Parcelable.Creator CREATOR =
	    	new Parcelable.Creator() {
	            public LocationData createFromParcel(Parcel in) {
	                return new LocationData();
	            }
	 
	            public LocationData[] newArray(int size) {
	                return new LocationData[size];
	            }
	        };

	
}
